//
// Created by Administrator on 2021/9/27.
//

#ifndef HELLOOPENGL_SHADERUTIL_H
#define HELLOOPENGL_SHADERUTIL_H
#include <map>
#include "../shader/Shader.h"
#endif //HELLOOPENGL_SHADERUTIL_H

class ShaderName {
public:
    const char* name;
    const char* vsFilePath;
    const char* fsFilePath;
    ShaderName(const char* name, const char* vsFilePath, const char* fsFilePath);
};

class ShaderUtil{
public:
    /**
     * 设置待编译shader列表， {vs, fs, vs, fs ...}
     */
    static void setShaders(std::vector<ShaderName> shaders);
    /**
     * 编译所有shader
     */
    static void initShaders();

    static Shader getShaderByName(const char* name);
};

